home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Language/OS - Multiplatform Resource Library
/
LANGUAGE OS.iso
/
oper_sys
/
choices
/
chcssml1.lha
/
Vector.h
< prev
Wrap
C/C++ Source or Header
|
1989-02-06
|
1KB
|
59 lines
/*
* This file is part of the Choices Operating System Simulator
* Developed by: The TAPESTRY Parallel Computing Laboratory
* University of Illinois at Urbana-Champaign
* Department of Computer Science
* 1304 W. Springfield Ave.
* Urbana, IL 61801
*
* Copyright (c) 1987, 1988, 1989 The University of Illinois Board of Trustees.
* All Rights Reserved.
* CONFIDENTIAL INFORMATION. Distribution restricted under license agreement.
*
* Author: Gary M. Johnston (johnston@cs.uiuc.edu)
* Project Manager and Principal Investigator: Roy Campbell (roy@cs.uiuc.edu)
*
* Funded by: NSF TAPESTRY Grant No. 1-5-30035, NASA ICLASS Grant
* No. 1-5-25469 and No. NSG1471 and AT&T Metronet Grant No. 1-5-37411.
*/
/*
* Vector.h - Class VectorQueue declarations.
*
* $Header: Vector.h,v 1.2 88/02/15 20:56:42 johnston Exp $
* $Locker: johnston $
*/
#ifndef VECTOR_H
#define VECTOR_H
#include "Queue.h"
const int ResetVector = 0; // Raise ResetException.
const int IdleVector = 1; // Raise IdleException.
const int TimerVector = 2; // Raise TimerException.
const int TerminateVector = 3; // Raise TerminateException.
const int VectorCount = 4; // Number of vectors.
inline int
VectorValid(int vector)
{
/*
* Return "true" iff the vector is within range.
*/
return ((vector >= 0) && (vector < VectorCount));
}
class VectorQueue {
Queue * queue;
public:
VectorQueue();
~VectorQueue();
void add(int vector);
int remove();
int isEmpty();
};
#endif /* VECTOR_H */